{% extends "base.phtml" %}


{% block content %}
<div class="box">
    <div class="box-header with-border">
        <div>
            <form method="get">
                <div class="input-business input-business-sm" >
                    <div class="col-xs-5" style="width: 500px">
                        筛选时间段
                        <input style="height:35px;" name="stime"
                               value="{{stime ? date('Y-m-d H:i:s',stime) : ''}}" placeholder="起始时间"
                               class="laydate-icon"
                               onclick="laydate({'istime': true, 'format': 'YYYY-MM-DD hh:mm:ss'})">
                        至
                        <input style="height:35px;" name="etime"
                               value="{{etime ? date('Y-m-d H:i:s',etime) : ''}}" placeholder="结束时间"
                               class="laydate-icon"
                               onclick="laydate({'istime': true, 'format': 'YYYY-MM-DD hh:mm:ss'})">
                    </div>
                    <div class="input-business-btn">
                        <button type="submit" class="btn btn-default"><i class="fa fa-search"></i></button>
                    </div>
                </div>
            </form>
        </div>
    </div>
    <div class="box-body">
        <table class="table table-bordered  table-hover">
            <tr>
                <th style="100px">订单ID</th>
                <th style="100px">用户UID</th>
                <th style="100px">昵称</th>
                <th style="100px">手机号</th>
                <th style="100px">购买数量</th>
                <th style="150px">操作时间</th>
            </tr>

            {%for k,v in list%}
            <tr>
                <td>{{v.tradeno}}</td>
                <td>{{v.uid}}</td>
                <td>{{v.nickname}}</td>
                <td>{{v.phone}}</td>
                <td>{{v.num}}</td>
                <td>{{date('Y-m-d H:i:s',v.createtime)}}</td>
            </tr>
            {%endfor%}
        </table>
    </div>

    <div class="box-footer clearfix">
        {{pageHtml}}
    </div>
</div>
{% endblock %}

{% block extjs %}

{% endblock %}